FROM ccapnljh.mirror.aliyuncs.com/library/mysql:5.7.18

ENV TZ Asia/Shanghai

RUN mkdir -p /data/mysql /log/mysql/ 
RUN chown -R mysql.mysql /var/run/mysqld/ /data/mysql /log/mysql/
ADD mysqld.cnf /etc/mysql/mysql.conf.d/mysqld.cnf
